var phoneG = document.querySelector('.phone-game')

var html = ''
phoneGames.forEach(item => {
    html += `
        <div class="item">
            <img src="${item.imgurl}" alt="">
            <p>${item.title}</p>
            <a href="">立即下载</a>
        </div>
    `
})

phoneG.innerHTML = html

var linklist1 = document.querySelector('.linklist1')

var linkhtml = ''

linkData1.forEach(item => {
    linkhtml += `
        <a href="javascript:;">${item.title}</a>
    `
})

linklist1.innerHTML = linkhtml

var linklist2 = document.querySelector('.linklist2')

var linkhtml2 = ''

linkData2.forEach(item => {
    linkhtml2 += `
        <a href="javascript:;">${item.title}</a>
    `
})

linklist2.innerHTML = linkhtml2

var li1 = document.querySelector('#li1')
var li2 = document.querySelector('#li2')

li1.onmouseenter = function() {
    li2.classList = ''
    this.classList = 'current'
    linklist2.style.display = 'none'
    linklist1.style.display = 'block'
}
li2.onmouseenter = function() {
    li1.classList = ''
    this.classList = 'current'
    linklist1.style.display = 'none'
    linklist2.style.display = 'block'
}